package com.turing.post.salesmanage.util;

import java.util.HashMap;

public class SalesManageRespCode {
	private final static HashMap<String, String> _msgmap = new HashMap<String, String>();
	/**
	 * 初始化_msgmap,在本类第一次被加载之后
	 */
	static {
		_msgmap.put(SalesManageRespCode.PERSONALCUSTOM_ARGS_NULL,
				"Salesmanage_PersonalCustom_Business");
		_msgmap.put(SalesManageRespCode.ORGANIZECUSTOM_ARGS_NULL,
				"Salesmanage_OrganizeCustom_Business");
		_msgmap.put(SalesManageRespCode.SALESBUSINESS_ARGS_NULL,
				"Salesmanage_SaleOrder_Business");
		_msgmap.put(SalesManageRespCode.DEPOSIT_EXCEPTIONCODE,
				"Salesmanage_Deposit_Business");

	}

	/**
	 * 根据响应码查询响应信息
	 * 
	 * @param respCode
	 * @return
	 */
	public static String getRespCodeMessage(String respCode) {
		String msg = _msgmap.get(respCode);
		return (msg == null) ? respCode : msg;
	}

	/**
	 * 个人客户参数为NULL
	 */
	public final static String PERSONALCUSTOM_ARGS_NULL = "PERSONALCUSTOM_ARGS_NULL";
	/**
	 * 单位信息参数为NULL
	 */
	public final static String ORGANIZECUSTOM_ARGS_NULL = "ORGANIZECUSTOM_ARGS_NULL";

	/**
	 * 销售单参数为NULL
	 */
	public final static String SALESBUSINESS_ARGS_NULL = "SALESBUSINESS_ARGS_NULL";

	/**
	 * 充值单
	 */
	public final static String DEPOSIT_EXCEPTIONCODE = "DEPOSIT_EXCEPTIONCODE";
}
